package com.versed.solutions.init;

import com.versed.solutions.details.CompanyDetails;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
@author Prakhar
 */
public class Initializer
{
	private static final String DOCTYPE = "<!DOCTYPE html>";
	
	/**
	 * Method load the required elements in the session at application startup
	 * 
	 * @param Reference variable of HttpServletRequest
	 * @param Reference variable of HttpServletResponse
	 */
	public void initializeVersed(HttpServletRequest request, HttpServletResponse response)
	{
		HttpSession session = request.getSession();
		session.setAttribute("DOCTYPE", DOCTYPE);
		session.setAttribute("companyName",CompanyDetails.COMPANY_NAME);
	}
	
}
